#include <stdio.h>
#include <esp_log.h>
#include <esp_chip_info.h>

void log_chip_info(){
    esp_chip_info_t chip_info;
    esp_chip_info(&chip_info);
    ESP_LOGI("ESP", "Chip info: %d model, %d cores, WiFi%s%s, revision %d\n",
             chip_info.model,
             chip_info.cores,
             chip_info.features & CHIP_FEATURE_BT ? "/BT" : "",
             chip_info.features & CHIP_FEATURE_BLE ? "/BLE" : "",
             chip_info.revision);
}